package com.amazon.bo;
import com.amazon.bo.base.BaseBo;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.tool.hbm2ddl.SchemaExport;

import javax.persistence.*;
import java.beans.Transient;
import java.io.Serializable;
import java.util.List;

@Entity
@DynamicUpdate
@DynamicInsert
public class Shop extends BaseBo implements Serializable {

    /**
     * 店名
     */
    @Column(columnDefinition = "varchar(255) DEFAULT NULL COMMENT '店名'")
    private String shopname;

    /**
     * 编码类型
     */
    @Column(columnDefinition = "varchar(255) DEFAULT NULL COMMENT '编码类型'")
    private String codetype;

    /**
     * 登录账号
     */
    @Column(columnDefinition = "varchar(255) DEFAULT NULL COMMENT ''")
    private String loginname;

    /**
     * 卖家编码
     */
    @Column(columnDefinition = "varchar(255) DEFAULT NULL COMMENT '卖家编码'")
    private String shopcode;
    public String getShopcode() {
        return shopcode;
    }
    public void setShopcode(String shopcode) {
        this.shopcode = shopcode;
    }

    /**
     * 访问编码
     */
    @Column(columnDefinition = "varchar(255) DEFAULT NULL COMMENT '访问编码'")
    private String visitcode;

    public String getVisitcode() {
        return visitcode;
    }

    public void setVisitcode(String visitcode) {
        this.visitcode = visitcode;
    }

    /**
     * 密钥
     */
    @Column(columnDefinition = "varchar(255) DEFAULT NULL COMMENT '密钥'")
    private String shopkey;
    public String getShopkey() {
        return shopkey;
    }
    public void setShopkey(String shopkey) {
        this.shopkey = shopkey;
    }

    /**
     * 处理天数
     */
    @Column(columnDefinition = "int DEFAULT 1 COMMENT '处理天数'")
    private int dealdays;

    /**
     * 百分比
     */
    @Column(columnDefinition = "decimal(10,2) DEFAULT 1 COMMENT '百分比'")
    private double ratio;

    /**
     * 开户帐号
     */
    @Column(columnDefinition = "varchar(255) DEFAULT NULL COMMENT '开户帐号'")
    private String openaccount;

    /**
     * 店铺状态
     */
    @Column(columnDefinition = "int DEFAULT 1 COMMENT '店状态'")
    private int shopstatus;
    private String mobile;

    //经营分类
   // private List<ShopClass> operateClass;

    public String getShopname() {
        return shopname;
    }

    public void setShopname(String shopname) {
        this.shopname = shopname;
    }

    public String getCodetype() {
        return codetype;
    }

    public void setCodetype(String codetype) {
        this.codetype = codetype;
    }

    public String getLoginname() {
        return loginname;
    }

    public void setLoginname(String loginname) {
        this.loginname = loginname;
    }


    public int getDealdays() {
        return dealdays;
    }

    public void setDealdays(int dealdays) {
        this.dealdays = dealdays;
    }

    public double getRatio() {
        return ratio;
    }

    public void setRatio(double ratio) {
        this.ratio = ratio;
    }

    public String getOpenaccount() {
        return openaccount;
    }

    public void setOpenaccount(String openaccount) {
        this.openaccount = openaccount;
    }

    /**
     * key
     * */
    private String secretKey;
    public String getSecretKey() {
        return secretKey;
    }
    public void setSecretKey(String secretKey) {
        this.secretKey = secretKey;
    }


    /***
     * 地址
     */
    private String serviceUrl;
    public String getServiceUrl() {
        return serviceUrl;
    }
    public void setServiceUrl(String serviceUrl) {
        this.serviceUrl = serviceUrl;
    }


    /***
     *
     * token
     */
    private String mwsAuthToken;
    public String getMwsAuthToken() {
        return mwsAuthToken;
    }
    public void setMwsAuthToken(String mwsAuthToken) {
        this.mwsAuthToken = mwsAuthToken;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    private Long userId;

    public int getShopstatus() {
        return shopstatus;
    }

    public void setShopstatus(int shopstatus) {
        this.shopstatus = shopstatus;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }
    //国家
    private String Country;

    public String getCountry() {
        return Country;
    }

    public void setCountry(String country) {
        Country = country;
    }
}
